package com.qumoyugo.springframework.beans.factory.config;

import com.qumoyugo.springframework.beans.factory.HierarchialBeanFactory;

/**
 * 大多数Bean工厂要实现的配置接口
 */
public interface ConfigurableBeanFactory extends HierarchialBeanFactory, SingletonBeanRegistry {

    String SCOPE_SINGLETON = "singleton";
    String SCOPE_PROTOTYPE = "prototype";

    void addBeanPostProcessor(BeanPostProcessor beanPostProcessor);

    /**
     * 销毁单例
     */
    void destroySingletons();
}
